import {createWebHashHistory, createRouter, type RouteRecordRaw} from 'vue-router'
import layout from '@/layout/index.vue'

const routes:RouteRecordRaw[] = [
    {
        path: '/',
        component: layout,
        children: [
            {
                path: '/',
                name: 'govern',
                component: () => import('@/views/govern.vue')
            },
            {
                path: '/setting',
                name: 'setting',
                component: () => import('@/views/setting.vue')
            },
            {
                path: '/cloud',
                name: 'cloud',
                component: () => import('@/views/cloud.vue')
            }
        ]
    }
]

export const router = createRouter({
    history: createWebHashHistory(),
    routes
})
